import request from '@/utils/request'

// 查询工序台账列表
export function listAStep(query) {
  return request({
    url: '/system/aStep/list',
    method: 'get',
    params: query
  })
}

// 查询工序台账详细
export function getAStep(id) {
  return request({
    url: '/system/aStep/' + id,
    method: 'get'
  })
}

// 新增工序台账
export function addAStep(data) {
  return request({
    url: '/system/aStep',
    method: 'post',
    data: data
  })
}

// 修改工序台账
export function updateAStep(data) {
  return request({
    url: '/system/aStep',
    method: 'put',
    data: data
  })
}

// 删除工序台账
export function delAStep(id) {
  return request({
    url: '/system/aStep/' + id,
    method: 'delete'
  })
}
